package com.fruit.web.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.fruit.web.action.util.BaseAction;
import com.gofruit.bean.Product;
/**
 * 商品管理，包括添加商品、删除商品、商品的上下架，商品排序
 * @author zhaopeng
 *
 */
@Controller
@Scope("prototype")
public class ProductAction extends BaseAction<Product>
{
	
	private static final long serialVersionUID = -4099247167924527077L;
	private Product product;
	
	@Override
	public Product getModel()
	{
		return product;
	}
	@Override
	public void prepare() throws Exception
	{
		product=new Product();
	}

}
